package com.zhongwang.mms.module.basic.dao;

import com.zhongwang.mms.gen.entity.TDictionary;
import com.zhongwang.mms.gen.entity.TDictionaryExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TDictionaryDao {
    long countByExample(TDictionaryExample example);

    int deleteByExample(TDictionaryExample example);

    int deleteByPrimaryKey(Integer dicId);

    int insert(TDictionary record);

    int insertSelective(TDictionary record);

    List<TDictionary> selectByExample(TDictionaryExample example);

    TDictionary selectByPrimaryKey(Integer dicId);

    int updateByExampleSelective(@Param("record") TDictionary record, @Param("example") TDictionaryExample example);

    int updateByExample(@Param("record") TDictionary record, @Param("example") TDictionaryExample example);

    int updateByPrimaryKeySelective(TDictionary record);

    int updateByPrimaryKey(TDictionary record);
    /**
     *@name: getTDictionaryByDicReamrk
     *@description: 根据dicReamrk获取实体
     *@param: [dicRemark]
     *@returnType: com.zhongwang.mms.gen.entity.TDictionary
     *@author: 徐一贺
     *@coddingDate: 2020/8/7 19:54
     *@version: v1.0
    **/
    TDictionary getTDictionaryByDicReamrk(String dicRemark);
}